﻿<%@ Page Title="Сообщения" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="MessageDialog.aspx.cs" Inherits="MessageDialog" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Диалог (<asp:HyperLink ID="FromWhomHyperLink" runat="server" />)
    </h2>
    <asp:MultiView ID="MultiView1" runat="server">
        <asp:View ID="View1" runat="server">
            <asp:Label ID="aboutNullMess" runat="server" Text=""></asp:Label>
            <asp:ListView ID="listBM" runat="server">
                <ItemTemplate>
                    <div style="border-bottom: 1px #CCC solid;">
                        Отправитель:
                        <%#Eval("FromWhom")%><br />
                        Дата отправки:
                        <%#Eval("SendingDate")%><br />
                        Сообщение:
                        <%#Eval("Text") %><br />
                    </div>
                </ItemTemplate>
                <ItemSeparatorTemplate>
                    <br />
                </ItemSeparatorTemplate>
            </asp:ListView>
            <br />
            <asp:DataPager ID="MessGbookDataPager" PagedControlID="listBM" runat="server">
                <Fields>
                    <asp:NextPreviousPagerField ShowLastPageButton="false" PreviousPageText="Назад" ShowNextPageButton="False" />
                    <asp:NumericPagerField />
                    <asp:NextPreviousPagerField NextPageText="Далее" ShowPreviousPageButton="False" />
                </Fields>
            </asp:DataPager>
            <asp:Label ID="StatusMessageLabel" runat="server" Text="" />
            <br />
            <asp:TextBox ID="MessageText" runat="server" TextMode="MultiLine" Rows="5" Columns="29">
            </asp:TextBox>
            <br />
            <p align="center" style="border: 1px double black; width: 253px;">
                <asp:LinkButton ID="SendLinkButton" runat="server" OnClick="SendLinkButton_Click">ОТПРАВИТЬ</asp:LinkButton>
            </p>
            <asp:Label ID="StatusLabel" runat="server" Text=""></asp:Label>
        </asp:View>
        <asp:View ID="View2" runat="server">
            <br />
            Ваше сообщение успешно отправлено, вернуться к
            <asp:HyperLink ID="HyperLink1" runat="server">диалогу</asp:HyperLink>?
        </asp:View>
    </asp:MultiView>
</asp:Content>
